package com.eric.account.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import entity.CommonResult;
import lombok.extern.slf4j.Slf4j;

/**
 * @author:Eric
 * @date:2021/7/8
 */
@Slf4j
public class HandlerException {

    public static CommonResult getOneHandler(Long id, BlockException e) {
        log.info("达到阈值 id{}", id, e);
        return CommonResult.failed("达到阈值啦");
    }
}
